package com.telit.common.config;

import com.telit.common.exception.ForestBaseExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


/**
 * 全局注解类
 */
@Configuration
@PropertySource(value = "classpath:application.yml", encoding = "UTF-8")
public class GlobalDefaultConfiguration {

    @Bean
    public ForestBaseExceptionHandler globalDefaultExceptionHandler() {
        return new ForestBaseExceptionHandler();
    }

}
